import React, { Component } from 'react';
import {
    View,
    Text,
    TouchableOpacity,
} from 'react-native';

import { resumesixStyle as styles } from '../../../../../styles';
import Icon from 'react-native-vector-icons/Ionicons';
import fmt from '../../../../util/fmtDateUtil';

export default class Re_project6_1 extends Component {
    // 初始化模拟数据
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <View style={styles.listsix}>
                <View style={styles.ninesp}>
                    <View style={styles.sixallin}>
                        <View style={styles.sixev1}>
                            <Text style={styles.sixtxt1}>项目名称：<Text>{this.props.xzProjectExp.proexpName}</Text></Text>
                            <Text style={styles.sixtxt3}>（<Text>{fmt(this.props.xzProjectExp.proexpBeginTime, 'yyyy-MM-dd')}</Text> - <Text>{fmt(this.props.xzProjectExp.proexpEndTime, 'yyyy-MM-dd')}</Text>）</Text>
                        </View>
                        <Text style={styles.sixev3}>项目职务：<Text style={styles.sixtxt1}>{this.props.xzProjectExp.proexpPostion}</Text></Text>
                        <Text style={styles.sixev3}>项目描述：<Text style={styles.sixtxt1}>{this.props.xzProjectExp.proexpDescribe}</Text></Text>
                        <Text style={styles.sixev3}>项目职责：<Text style={styles.sixtxt1}>{this.props.xzProjectExp.proexpDuty}</Text></Text>
                    </View>

                    <TouchableOpacity activeOpacity={1} style={styles.touch}
                        onPress={() => { this.goGet('Rproedit', this.props.resume, this.props.xzProjectExp, this.props.actions) }}>
                        <Icon
                            name={'md-create'}
                            size={16}
                            color={'#3d9ccc'} />
                    </TouchableOpacity>

                </View>
            </View>
        );
    }
    goGet(name, object, xzProjectExp, action) {
        this.props.navigation.navigate(name, { resume: object, xzProjectExp: xzProjectExp, actions: action });
    }
}